#{extends 'main.html' /}
#{set title:'Home' /}

<div id="content">
<h1>Detail of Post with id ${post.id}</h1>
<div class="bloque_centro_intra">
	<p>Id: ${post.id}</p>
	<p>Title: ${post.title}</p>
	<p>Content: ${post.content}</p>
	<p>Author ${post.author.id}</p>
	
	<div class="post-comments">
	#{list items: post.comments.get(), as: 'comment'}
		<div id="comment-${comment.id}">
			<p>${comment.id} - ${comment.title}</p>
		</div>
	#{/list}
	</div>
</div>
</div>

